package com.guoxianwei.util;

import java.io.Serializable;

public class Page implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -397445136448847593L;

	private int pagesize;

	private int currentPage;

	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getStartRow() {
		return (getCurrentPage() - 1) * getPagesize();
	}

	public int getEndRow() {
		return (getCurrentPage()) * getPagesize();
	}
}
